package com.ruoyi.applet.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 质保编码对象 mini_pledge_num
 *
 * @author liucan
 * @date 2024-04-03
 */

@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class MiniPledgeNum implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 质保编码id
     */
    private Long id;

    /**
     * 产品类型 100漆面膜 101改色膜 102太阳膜
     */
    @Excel(name = "产品类型", readConverterExp = "100=漆面膜,101=改色膜,102=太阳膜")
    private String dictId;

    /**
     * 生成规则 开头字母或数字比如QM或001
     */
    private String coRule;

    /**
     * 位数
     */
    private Long coPlace;

    /**
     * 质保编号
     */
    @Excel(name = "质保编号")
    private String coNum;

    /**
     * 合作商(品牌)
     */
    @Excel(name = "产品品牌")
    private String brId;

    /**
     * 产品型号
     */
    @Excel(name = "产品型号")
    private String prId;

    /**
     * 个数
     */
    private Integer coZahl;

    /**
     * 是否使用 0未使用 1已使用
     */
    private Integer coGelten;

    /**
     * 最后一个到几号了
     */
    private Integer coSome;

    /**
     * 是否启用 0启用 1禁用
     */
    private Integer coShow;

    /**
     * 排序
     */
    private String coOrder;

    /**
     * 判断质保编码的类型numType
     */
    private Integer numType;
    @Excel(name = "备注")
    private String remark;

    /**
     * 所属加盟商
     */
    @Excel(name = "加盟商")
    private String leId;

    /**
     * 所属小程序
     */
    private String toApplet;

    @TableField(exist = false)
    private String leName;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDictId() {
        return dictId;
    }

    public void setDictId(String dictId) {
        this.dictId = dictId;
    }

    public String getCoRule() {
        return coRule;
    }

    public void setCoRule(String coRule) {
        this.coRule = coRule;
    }

    public Long getCoPlace() {
        return coPlace;
    }

    public void setCoPlace(Long coPlace) {
        this.coPlace = coPlace;
    }

    public String getCoNum() {
        return coNum;
    }

    public void setCoNum(String coNum) {
        this.coNum = coNum;
    }

    public String getBrId() {
        return brId;
    }

    public void setBrId(String brId) {
        this.brId = brId;
    }

    public String getPrId() {
        return prId;
    }

    public void setPrId(String prId) {
        this.prId = prId;
    }

    public Integer getCoZahl() {
        return coZahl;
    }

    public void setCoZahl(Integer coZahl) {
        this.coZahl = coZahl;
    }

    public Integer getCoGelten() {
        return coGelten;
    }

    public void setCoGelten(Integer coGelten) {
        this.coGelten = coGelten;
    }

    public Integer getCoSome() {
        return coSome;
    }

    public void setCoSome(Integer coSome) {
        this.coSome = coSome;
    }

    public Integer getCoShow() {
        return coShow;
    }

    public void setCoShow(Integer coShow) {
        this.coShow = coShow;
    }

    public String getCoOrder() {
        return coOrder;
    }

    public void setCoOrder(String coOrder) {
        this.coOrder = coOrder;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getLeId() {
        return leId;
    }

    public void setLeId(String leId) {
        this.leId = leId;
    }

    public String getToApplet() {
        return toApplet;
    }

    public void setToApplet(String toApplet) {
        this.toApplet = toApplet;
    }

    public String getLeName() {
        return leName;
    }

    public void setLeName(String leName) {
        this.leName = leName;
    }

    public Integer getNumType() {
        return numType;
    }

    public void setNumType(Integer numType) {
        this.numType = numType;
    }

    @Override
    public String toString() {
        return "MiniPledgeNum{" +
                "id=" + id +
                ", dictId='" + dictId + '\'' +
                ", coRule='" + coRule + '\'' +
                ", coPlace=" + coPlace +
                ", coNum='" + coNum + '\'' +
                ", brId='" + brId + '\'' +
                ", prId='" + prId + '\'' +
                ", coZahl=" + coZahl +
                ", coGelten=" + coGelten +
                ", coSome=" + coSome +
                ", coShow=" + coShow +
                ", coOrder='" + coOrder + '\'' +
                ", numType=" + numType +
                ", remark='" + remark + '\'' +
                ", leId='" + leId + '\'' +
                ", toApplet='" + toApplet + '\'' +
                ", leName='" + leName + '\'' +
                '}';
    }
}
